Skip to content

docs(enterprise): expand Functions reference with table functions, WASM tier, and distribution gating#104

Open
lukekim wants to merge 1 commit into
trunkfrom
enterprise/functions-table-and-http-tier-docs
Open

docs(enterprise): expand Functions reference with table functions, WASM tier, and distribution gating#104
lukekim wants to merge 1 commit into
trunkfrom
enterprise/functions-table-and-http-tier-docs

Conversation

@lukekim
Copy link
Copy Markdown
Contributor

@lukekim lukekim commented May 15, 2026

Summary

Expands the Enterprise User-Defined Functions docs to match the current shipping behaviour, calls out which tiers are Enterprise-/Cloud-only, and surfaces Functions in the Enterprise sidebar.

  • Table functions (kind: table) are now documented for SQL, Remote HTTP, and WebAssembly tiers — declaration, call sites, signature.tables for passing relations, and the per-tier wire shapes.
  • WebAssembly tier (from: wasm) is introduced with its sandbox params (module / source, entrypoint, fuel, max_memory_bytes, …) and Arrow IPC ABI.
  • HTTP and WASM tiers are now flagged as Enterprise / Cloud Platform features: shipped by default in those distributions, local-build-only for open source. The Distribution Availability matrix in getting-started/distributions.md has matching rows.
  • Remote params now include batch_concurrency, max_response_bytes, and max_rows. The "batches are issued sequentially" claim is removed.
  • Supported Types is consolidated into a single tier-agnostic table covering primitives, list, large_list, struct, decimal(128|256), large_utf8, large_binary, and timestamps with timezones, with tier-specific serialization notes.
  • Schema reference picks up the per-function enabled field and clarifies the per-tier body / body_ref rules (required for SQL, forbidden for HTTP, optional table-input source for WASM).
  • Sidebar — User-Defined Functions is added under enterprise/SUMMARY.md → Features so the page is reachable from navigation.

Pages updated

  • enterprise/features/functions.md — major expansion: table functions, WebAssembly tier, Enterprise/OSS gating callouts, refreshed params and types tables, refined limitations.
  • enterprise/SUMMARY.md — Functions added under Features.
  • enterprise/getting-started/distributions.md — added "HTTP user-defined functions" and "WASM user-defined functions" rows to the Distribution Availability matrix and a short pointer paragraph.

Verification

  • Field names, defaults, and accepted values verified against the current Enterprise runtime source for the SQL, Remote, and WASM tiers.
  • Distribution gating confirmed against the shipped Cargo feature set: http-functions and wasm-functions are in the Enterprise default feature list and not in the OSS default.
  • GitBook hint syntax ({% hint %}) used throughout — no Docusaurus ::: blocks introduced.
  • Internal links use .md suffixes (../getting-started/distributions.md, distributed-query.md).
  • enterprise/SUMMARY.md updated for the new sidebar entry.

…er, and distribution gating

- Document `kind: table` user-defined table functions (UDTFs) with SQL,
  Remote HTTP, and WebAssembly tiers, including how to declare and call
  them and how `signature.tables` passes relations through.
- Add the WebAssembly tier (from: wasm) with its sandbox params, ABI
  contract, and supported source/module modes.
- Note that the HTTP and WASM tiers are gated behind the http-functions
  and wasm-functions cargo features — shipped by default in Enterprise
  and Cloud distributions, local-build-only for open source. Refreshed
  the Distribution Availability matrix accordingly.
- Update the Remote tier wire contract to cover table arguments and the
  combined args + tables request shape, and update the params table with
  batch_concurrency, max_response_bytes, and max_rows.
- Expand the Supported Types reference to include list, large_list,
  struct, decimal, decimal256, large_utf8, large_binary, and
  timestamps with timezones, and clarify per-tier serialization
  semantics.
- Add `enabled` to the Function schema reference and clarify per-tier
  body / body_ref rules.
- List User-Defined Functions under Features in the Enterprise sidebar.
@lukekim lukekim added documentation Improvements or additions to documentation enhancement New feature or request labels May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants